<template>
  <div>
    <el-result icon="warning" title="404提示" sub-title="你找的页面走丢了~">
      <template #extra>
        <el-button type="primary" @click="gotoHome">回到首页</el-button>
      </template>
    </el-result>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { useRouter } from 'vue-router';
export default defineComponent({
  setup() {
    const router = useRouter()
    const gotoHome = () => {
      router.push('/')
    }
    return { gotoHome }
  },
})
</script>